package com.zyh.controller;


import com.zyh.entity.Log;
import com.zyh.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhang
 * @since 2022-05-05
 */
@RestController
@RequestMapping("/log")
public class LogController {
    @Autowired
    ILogService logService;

    @PostMapping("/insert")
    public void insert(@RequestBody Log log){
        logService.save(log);
    }
}

